package org.xlx.xlx_oa.attendance.convertor;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.xlx.xlx_oa.attendance.domain.AttendanceApply;
import org.xlx.xlx_oa.attendance.domain.dto.AttendanceApplyDto;
import org.xlx.xlx_oa.attendance.domain.vo.AttendanceApplyVo;
import org.xlx.xlx_oa.common.BaseConvertor;

import java.util.List;

@Mapper
public interface AttendanceConvertor extends BaseConvertor {
    AttendanceConvertor INSTANCE = Mappers.getMapper(AttendanceConvertor.class);

    AttendanceApply convertVoToDomain(AttendanceApplyVo applyVo);

    AttendanceApplyDto convertToDomainDto(AttendanceApply apply);

    List<AttendanceApplyDto> convertToDomainDtoList(List<AttendanceApply> list);
}
